<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>表格</title>
</head>
<body>
	<table border="1" width="50%" align="center">
	<thead>
		<tr>
			<td>a1</td>
			<td>b1</td>
			<td>c1</td>
			<td>d1</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>a2</td>
			<td>b2</td>
			<td>c2</td>
			<!--  rowspan:纵向合并单元格 -->
			<td rowspan="2">d2</td>
		</tr>
		<tr>
			<td>a1</td>
			<td>b1</td>
			<td>c1</td>
		</tr>
	</body>
	<tfoot>
		<tr>
			<td>a1</td>
			<td>b1</td>
			<!-- colspan:横向合并单元格 -->
			<td colspan="2">d1</td>
		</tr>
	</tfoot>
	</table>
</body>
</html>